package org.ch00.test04.demo07.demo01;

/**
 * 电脑
 * @author CSY
 * @date 2025 - 03 - 04
 */
public class Computer extends Devices implements USB {

    public void conn(USB usb) {
        System.out.println("加载驱动...");

        usb.read();
        usb.write("哦");
    }

    @Override
    public void read() {
        System.out.println("读取数据中...");
    }

    @Override
    public void write(String info) {
        System.out.println("写入数据："+info);
    }
}
